#include "CWinTest.h"
#include "CReflectTest.h"
#include "CReflectTest2.h"

CWinTest MainWin;

CReflectTest ReflectTest;

CReflectTest2 ReflectTest2;

int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
    MSG Msg = { 0 };
    RECT rc = { 500,200,800,500 };

    //HWND hWnd = MainWin.Create(nullptr, rc, nullptr, WS_OVERLAPPEDWINDOW);
    //MainWin.UpdateWindow();
    //MainWin.ShowWindow(SW_SHOW);

    //HWND hWnd = ReflectTest.Create(nullptr, rc, nullptr, WS_OVERLAPPEDWINDOW);
    //ReflectTest.UpdateWindow();
    //ReflectTest.ShowWindow(SW_SHOW);

    HWND hWnd = ReflectTest2.Create(nullptr, rc, nullptr, WS_OVERLAPPEDWINDOW);
    ReflectTest2.UpdateWindow();
    ReflectTest2.ShowWindow(SW_SHOW);

    while (GetMessage(&Msg, nullptr, 0, 0))
    {
        TranslateMessage(&Msg);
        DispatchMessage(&Msg);
    }

    return 0;
}
